<?php

require_once 'db_conn.php';
$id = $_GET['id'];

$sql = " 
delete from t_message
where id=$id
";
//echo $sql;
//print_r($sql);
//die;

$result = $conn->query($sql);
if($result===false){
    echo "失败";    
}else{
    header("location: index.php");
}
